package com.gxa.p2p.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;


/**
 * @author xiangzuo
 * 消息（推送）
 */
@Data
@AllArgsConstructor
@NoArgsConstructor



@ApiModel("消息推送")
public class Massage implements Serializable {

  private Long id;
  @ApiModelProperty(name = "title",value = "标题")
  private String title;
  @ApiModelProperty(name = "type",value = "类型")
  private String type;
  @ApiModelProperty(name = "content",value = "推送内容")
  private String content;
  @ApiModelProperty(name = "state",value = "状态0表示发送失败，1表示发送成功")
  private Boolean state;
  @ApiModelProperty(name = "sendNum",value = "已发送条数")
  private Integer sendNum;
  @ApiModelProperty(name = "creatTime",value = "添加时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Date creatTime;
  @ApiModelProperty(name = "object",value = "推送对象")
  private String object;
}
